package com.thinkgem.jeesite.modules.cloudfactory.web;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@RequiresPermissions("user")
@Controller
@RequestMapping(value = "${adminPath}/indexLogin")
public class ClientPageController {
	
	
	@RequestMapping(value="/goIndex", method=RequestMethod.GET)
	public String toHome(Model model,HttpServletRequest request,String isLogin){
		model.addAttribute("isLogin",!StringUtils.isBlank(isLogin)?isLogin:0);
		return "cloudfactory/welcome";
	}
	
}
